package nobu.nakata.nfcfare.datamapper;

import javax.jdo.PersistenceManager;

import net.sf.jsr107cache.Cache;
import nobu.nakata.nfcfare.table.TrainStation;


public class TrainStationDataMapper {
	private LongKeyDataMapper<TrainStation> mapper;
	
	
	public TrainStationDataMapper(Cache cache, PersistenceManager pm) {
		this.mapper		= new LongKeyDataMapper<TrainStation>(cache, pm, TrainStation.class);
	}
	
	
	public TrainStation findByTrainCode(Long trainCode) {
		return mapper.findByLongKey(trainCode);
	}
	
	public TrainStation set(TrainStation item) {
		return mapper.set(item);
	}
}
